package com.fancy.middleware.common.exception;

import lombok.Data;

@Data
public class MsgException extends RuntimeException{

    private Integer errorCode;

    private String errorMsg;

    public MsgException(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public MsgException(InterruptedException e) {
        super(e);
    }

    public MsgException() {
    }

    public MsgException(String message) {
        super(message);
    }

    public MsgException(String message, Throwable cause) {
        super(message, cause);
    }

    public MsgException(Throwable cause) {
        super(cause);
    }

    public MsgException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
